package job;

public class TestSUV {

	public static void main(String[] args) {
		// 4. 测试类中，创建若干SUV对象，保存到集合，遍历集合，输出中型SUV。
		
		SUV suv1 = new SUV(3500,10000);
		SUV suv2 = new SUV(4400,10000);
		SUV suv3 = new SUV(5000,10000);
		SUV suv4 = new SUV(5060,10000);
		SUV suv5 = new SUV(6500,10000);
		
		SUV[] suvs = new SUV[5];
		
		suvs[0] = suv1;
		suvs[1] = suv2;
		suvs[2] = suv3;
		suvs[3] = suv4;
		suvs[4] = suv5;
		
		for (int i = 0; i < suvs.length; i++) {
			
			SUV suv = suvs[i];
			if(suv.midCar()){
				suv.show();
			}
		}
		
	}

}
